package com.example.sell.service.impl;

import com.example.sell.dto.OrderDTO;
import com.example.sell.service.PushMessage;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PushMessageImpl implements PushMessage {
    @Autowired
    private WxMpService wxMpService;
    @Override
    public void orderStatus(OrderDTO orderDTO) {
        WxMpTemplateMessage templateMessage=new WxMpTemplateMessage();
        templateMessage.setTemplateId("DwU8o0YRUPhBqtfRG87HCl3v4sB8PD_uaYYeS9O8HO0");
        templateMessage.setToUser("");
        wxMpService.getTemplateMsgService();
    }
}
